home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOM3Node.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  10KB  |  234 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOM3Node.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOM3Node_h__
  6. #define __gen_nsIDOM3Node_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIVariant; /* forward declaration */
  18.  
  19. class nsIDOMUserDataHandler; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOM3Node */
  23. #define NS_IDOM3NODE_IID_STR "29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f"
  24.  
  25. #define NS_IDOM3NODE_IID \
  26.   {0x29fb2a18, 0x1dd2, 0x11b2, \
  27.     { 0x8d, 0xd9, 0xa6, 0xfd, 0x5d, 0x5a, 0xd1, 0x2f }}
  28.  
  29. class NS_NO_VTABLE nsIDOM3Node : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOM3NODE_IID)
  33.  
  34.   /* readonly attribute DOMString baseURI; */
  35.   NS_IMETHOD GetBaseURI(nsAString & aBaseURI) = 0;
  36.  
  37.   enum { DOCUMENT_POSITION_DISCONNECTED = 1U };
  38.  
  39.   enum { DOCUMENT_POSITION_PRECEDING = 2U };
  40.  
  41.   enum { DOCUMENT_POSITION_FOLLOWING = 4U };
  42.  
  43.   enum { DOCUMENT_POSITION_CONTAINS = 8U };
  44.  
  45.   enum { DOCUMENT_POSITION_CONTAINED_BY = 16U };
  46.  
  47.   enum { DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32U };
  48.  
  49.   /* unsigned short compareDocumentPosition (in nsIDOMNode other)  raises (DOMException); */
  50.   NS_IMETHOD CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval) = 0;
  51.  
  52.   /* attribute DOMString textContent; */
  53.   NS_IMETHOD GetTextContent(nsAString & aTextContent) = 0;
  54.   NS_IMETHOD SetTextContent(const nsAString & aTextContent) = 0;
  55.  
  56.   /* boolean isSameNode (in nsIDOMNode other); */
  57.   NS_IMETHOD IsSameNode(nsIDOMNode *other, PRBool *_retval) = 0;
  58.  
  59.   /* DOMString lookupPrefix (in DOMString namespaceURI); */
  60.   NS_IMETHOD LookupPrefix(const nsAString & namespaceURI, nsAString & _retval) = 0;
  61.  
  62.   /* boolean isDefaultNamespace (in DOMString namespaceURI); */
  63.   NS_IMETHOD IsDefaultNamespace(const nsAString & namespaceURI, PRBool *_retval) = 0;
  64.  
  65.   /* DOMString lookupNamespaceURI (in DOMString prefix); */
  66.   NS_IMETHOD LookupNamespaceURI(const nsAString & prefix, nsAString & _retval) = 0;
  67.  
  68.   /* boolean isEqualNode (in nsIDOMNode arg); */
  69.   NS_IMETHOD IsEqualNode(nsIDOMNode *arg, PRBool *_retval) = 0;
  70.  
  71.   /* nsISupports getFeature (in DOMString feature, in DOMString version); */
  72.   NS_IMETHOD GetFeature(const nsAString & feature, const nsAString & version, nsISupports **_retval) = 0;
  73.  
  74.   /* nsIVariant setUserData (in DOMString key, in nsIVariant data, in nsIDOMUserDataHandler handler); */
  75.   NS_IMETHOD SetUserData(const nsAString & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval) = 0;
  76.  
  77.   /* nsIVariant getUserData (in DOMString key); */
  78.   NS_IMETHOD GetUserData(const nsAString & key, nsIVariant **_retval) = 0;
  79.  
  80. };
  81.  
  82. /* Use this macro when declaring classes that implement this interface. */
  83. #define NS_DECL_NSIDOM3NODE \
  84.   NS_IMETHOD GetBaseURI(nsAString & aBaseURI); \
  85.   NS_IMETHOD CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval); \
  86.   NS_IMETHOD GetTextContent(nsAString & aTextContent); \
  87.   NS_IMETHOD SetTextContent(const nsAString & aTextContent); \
  88.   NS_IMETHOD IsSameNode(nsIDOMNode *other, PRBool *_retval); \
  89.   NS_IMETHOD LookupPrefix(const nsAString & namespaceURI, nsAString & _retval); \
  90.   NS_IMETHOD IsDefaultNamespace(const nsAString & namespaceURI, PRBool *_retval); \
  91.   NS_IMETHOD LookupNamespaceURI(const nsAString & prefix, nsAString & _retval); \
  92.   NS_IMETHOD IsEqualNode(nsIDOMNode *arg, PRBool *_retval); \
  93.   NS_IMETHOD GetFeature(const nsAString & feature, const nsAString & version, nsISupports **_retval); \
  94.   NS_IMETHOD SetUserData(const nsAString & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval); \
  95.   NS_IMETHOD GetUserData(const nsAString & key, nsIVariant **_retval); 
  96.  
  97. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  98. #define NS_FORWARD_NSIDOM3NODE(_to) \
  99.   NS_IMETHOD GetBaseURI(nsAString & aBaseURI) { return _to GetBaseURI(aBaseURI); } \
  100.   NS_IMETHOD CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval) { return _to CompareDocumentPosition(other, _retval); } \
  101.   NS_IMETHOD GetTextContent(nsAString & aTextContent) { return _to GetTextContent(aTextContent); } \
  102.   NS_IMETHOD SetTextContent(const nsAString & aTextContent) { return _to SetTextContent(aTextContent); } \
  103.   NS_IMETHOD IsSameNode(nsIDOMNode *other, PRBool *_retval) { return _to IsSameNode(other, _retval); } \
  104.   NS_IMETHOD LookupPrefix(const nsAString & namespaceURI, nsAString & _retval) { return _to LookupPrefix(namespaceURI, _retval); } \
  105.   NS_IMETHOD IsDefaultNamespace(const nsAString & namespaceURI, PRBool *_retval) { return _to IsDefaultNamespace(namespaceURI, _retval); } \
  106.   NS_IMETHOD LookupNamespaceURI(const nsAString & prefix, nsAString & _retval) { return _to LookupNamespaceURI(prefix, _retval); } \
  107.   NS_IMETHOD IsEqualNode(nsIDOMNode *arg, PRBool *_retval) { return _to IsEqualNode(arg, _retval); } \
  108.   NS_IMETHOD GetFeature(const nsAString & feature, const nsAString & version, nsISupports **_retval) { return _to GetFeature(feature, version, _retval); } \
  109.   NS_IMETHOD SetUserData(const nsAString & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval) { return _to SetUserData(key, data, handler, _retval); } \
  110.   NS_IMETHOD GetUserData(const nsAString & key, nsIVariant **_retval) { return _to GetUserData(key, _retval); } 
  111.  
  112. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  113. #define NS_FORWARD_SAFE_NSIDOM3NODE(_to) \
  114.   NS_IMETHOD GetBaseURI(nsAString & aBaseURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseURI(aBaseURI); } \
  115.   NS_IMETHOD CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareDocumentPosition(other, _retval); } \
  116.   NS_IMETHOD GetTextContent(nsAString & aTextContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextContent(aTextContent); } \
  117.   NS_IMETHOD SetTextContent(const nsAString & aTextContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextContent(aTextContent); } \
  118.   NS_IMETHOD IsSameNode(nsIDOMNode *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSameNode(other, _retval); } \
  119.   NS_IMETHOD LookupPrefix(const nsAString & namespaceURI, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->LookupPrefix(namespaceURI, _retval); } \
  120.   NS_IMETHOD IsDefaultNamespace(const nsAString & namespaceURI, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultNamespace(namespaceURI, _retval); } \
  121.   NS_IMETHOD LookupNamespaceURI(const nsAString & prefix, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->LookupNamespaceURI(prefix, _retval); } \
  122.   NS_IMETHOD IsEqualNode(nsIDOMNode *arg, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEqualNode(arg, _retval); } \
  123.   NS_IMETHOD GetFeature(const nsAString & feature, const nsAString & version, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeature(feature, version, _retval); } \
  124.   NS_IMETHOD SetUserData(const nsAString & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserData(key, data, handler, _retval); } \
  125.   NS_IMETHOD GetUserData(const nsAString & key, nsIVariant **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserData(key, _retval); } 
  126.  
  127. #if 0
  128. /* Use the code below as a template for the implementation class for this interface. */
  129.  
  130. /* Header file */
  131. class nsDOM3Node : public nsIDOM3Node
  132. {
  133. public:
  134.   NS_DECL_ISUPPORTS
  135.   NS_DECL_NSIDOM3NODE
  136.  
  137.   nsDOM3Node();
  138.  
  139. private:
  140.   ~nsDOM3Node();
  141.  
  142. protected:
  143.   /* additional members */
  144. };
  145.  
  146. /* Implementation file */
  147. NS_IMPL_ISUPPORTS1(nsDOM3Node, nsIDOM3Node)
  148.  
  149. nsDOM3Node::nsDOM3Node()
  150. {
  151.   /* member initializers and constructor code */
  152. }
  153.  
  154. nsDOM3Node::~nsDOM3Node()
  155. {
  156.   /* destructor code */
  157. }
  158.  
  159. /* readonly attribute DOMString baseURI; */
  160. NS_IMETHODIMP nsDOM3Node::GetBaseURI(nsAString & aBaseURI)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* unsigned short compareDocumentPosition (in nsIDOMNode other)  raises (DOMException); */
  166. NS_IMETHODIMP nsDOM3Node::CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* attribute DOMString textContent; */
  172. NS_IMETHODIMP nsDOM3Node::GetTextContent(nsAString & aTextContent)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176. NS_IMETHODIMP nsDOM3Node::SetTextContent(const nsAString & aTextContent)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* boolean isSameNode (in nsIDOMNode other); */
  182. NS_IMETHODIMP nsDOM3Node::IsSameNode(nsIDOMNode *other, PRBool *_retval)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* DOMString lookupPrefix (in DOMString namespaceURI); */
  188. NS_IMETHODIMP nsDOM3Node::LookupPrefix(const nsAString & namespaceURI, nsAString & _retval)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* boolean isDefaultNamespace (in DOMString namespaceURI); */
  194. NS_IMETHODIMP nsDOM3Node::IsDefaultNamespace(const nsAString & namespaceURI, PRBool *_retval)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* DOMString lookupNamespaceURI (in DOMString prefix); */
  200. NS_IMETHODIMP nsDOM3Node::LookupNamespaceURI(const nsAString & prefix, nsAString & _retval)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204.  
  205. /* boolean isEqualNode (in nsIDOMNode arg); */
  206. NS_IMETHODIMP nsDOM3Node::IsEqualNode(nsIDOMNode *arg, PRBool *_retval)
  207. {
  208.     return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210.  
  211. /* nsISupports getFeature (in DOMString feature, in DOMString version); */
  212. NS_IMETHODIMP nsDOM3Node::GetFeature(const nsAString & feature, const nsAString & version, nsISupports **_retval)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216.  
  217. /* nsIVariant setUserData (in DOMString key, in nsIVariant data, in nsIDOMUserDataHandler handler); */
  218. NS_IMETHODIMP nsDOM3Node::SetUserData(const nsAString & key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval)
  219. {
  220.     return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222.  
  223. /* nsIVariant getUserData (in DOMString key); */
  224. NS_IMETHODIMP nsDOM3Node::GetUserData(const nsAString & key, nsIVariant **_retval)
  225. {
  226.     return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228.  
  229. /* End of implementation class template. */
  230. #endif
  231.  
  232.  
  233. #endif /* __gen_nsIDOM3Node_h__ */
  234.